package com.trainoo.service;

import com.trainoo.hystrix.ServiceHiHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Administrator on 2018/5/28.
 */
@FeignClient(value = "service-hi", fallback = ServiceHiHystrix.class)
public interface ScheduledServiceHi {

    @RequestMapping(value = "/hi")
    String sayHiFromClintOne(@RequestParam(value = "name") String name);
}
